import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import 'animate.css';
import {router} from "./router";
import {setupStore} from "/@/store";
import {autoImportIcon} from "/@/utils/icon/auto-import-icon";
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import directive from '/@/directive/index'
import '/@/assets/icon/iconfont.css'
import '/@/assets/icon/iconfont.js';



let app = createApp(App);
//安装pinia
setupStore(app)

//安装element plus
app.use(ElementPlus,{
    locale: zhCn,
})
//安装图标库
autoImportIcon(app)
//自定义指令
directive(app)
//添加路由
app.use(router)
console.log("初始化完成")
app.mount('#app')
